home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: fame1@ix.netcom.com (Matt Kittleson)
- Newsgroups: comp.lang.c
- Subject: Function Offsets
- Date: Sun, 17 Mar 1996 13:19:40 GMT
- Organization: Netcom
- Message-ID: <4ih3p4$4gn@cloner4.netcom.com>
- NNTP-Posting-Host: sea-wa4-18.ix.netcom.com
- X-NETCOM-Date: Sun Mar 17 5:23:48 AM PST 1996
- X-Newsreader: Forte Free Agent 1.0.82
-
- Is this the best way to get the offset of a function?
-
- void main()
- {
- void funct1()
-
- some code here...blah...blah...blah
-
- }
-
- Would i then be able to printf the address out? Then if I loaded the
- program by just malloc'n the memory, jump to the function by
- subtracting offsets? I have been meaning to try it, but have had
- little time.
-
- Any other info on either this or dynamic linking in general would be
- greatly appreaciated.
-
- Thanx
-
-